<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div th:include="common/css::css"></div>
</head>
<body>
<!-- loader Start -->
<div id="loading" style="display: none;">
    <div id="loading-center">
    </div>
</div>
<!-- loader END -->
<!-- Wrapper Start -->
<div class="wrapper">
    <div th:include="common/top :: top"></div>
    <div th:include="common/left :: left(activeUrl='studnet',Url='dorm')"></div>
    <div id="content-page" class="content-page">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <div class="iq-card">
                        <div class="iq-card-header d-flex justify-content-between">
                            <div class="iq-header-title">
                                <h4 class="card-title">编辑宿舍信息</h4>
                            </div>
                        </div>
                        <div class="iq-card-body">
                            <p>请修改宿舍地址号与地址</p>
                            <form th:action="@{/dorm/editor}" method="post">
                                <div class="form-group">
                                    <label for="name">宿舍地址:</label>
                                    <input type="text" class="form-control" name="dormAddress" th:value="${dormList.dormAddress}" id="name">
                                    <p style="color: red" th:if="${#fields.hasErrors('dorm.dormAddress')}" th:errors="${dorm.dormAddress}"></p>
                                </div>
                                <div class="form-group">
                                    <label for="classGrade">宿舍地址号:</label>
                                    <input type="text" class="form-control" name="dormNum" th:value="${dormList.dormNum}" id="classGrade">
                                    <p style="color: red" th:if="${#fields.hasErrors('dorm.dormNum')}" th:errors="${dorm.dormNum}"></p>
                                </div>
                                <input  type="hidden" name="dormId" th:value="${dormList.dormId}">
                                <button type="submit" class="btn btn-primary mr-2">提交</button>
                                <button type="reset" class="btn iq-bg-danger">重置</button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="common/js::js"></div>
</body>
</html>